var arr = [1,2,3,4,5,6]

// for (var i = 0; i < arr.length; i++){
//     arr[i] = arr[i]*10
//     console.log(arr[i]);
// }

while (arr.length){
    arr.pop()
    console.log(123);
}